<template>
  <div class="nav-bar" :style="navbarStyle">
    <div class="nav-bar-left">
      <slot name="nav-bar-left"></slot>
    </div>
    <div class="nav-bar-center">
      <slot name="nav-bar-center"></slot>
    </div>
    <div class="nav-bar-right">
      <slot name="nav-bar-right"></slot>
    </div>
  </div>
</template>

<script>


  export default {
    name: "navbar",
    props: {
      navbarBack: {
        type: String,
        default: "var(--color-tint)"
      },
      navbarTextColor: {
        type: String,
        default: "var(--color-text-w)"
      }
    },
    computed: {
      navbarStyle() {
        return {backgroundColor: this.navbarBack, color: this.navbarTextColor}
      }
    }
  }
</script>

<style scoped>
  .nav-bar {
    display: flex;
    line-height: 44px;
    text-align: center;
    box-shadow: -2px 0 2px rgba(100, 100, 100, .3);
    font-weight: bolder;
  }

  .nav-bar-left, .nav-bar-right {
    width: 70px;
  }

  .nav-bar-center {
    flex: 1;

  }
</style>
